#include<iostream>
#include<type_traits>
using namespace std;

int main(void)
{
	int a[2][3] = {1, 2, 3, 4, 5, 6};

	//extent<T, N>xxxxxxxxxxxxxxxxxxxx
	cout<< extent<decltype(a), 0>::value <<endl;
	cout<< extent<decltype(a), 1>::value <<endl;
	cout<< extent<decltype(a), 2>::value <<endl;

	return 0;
}
